package com.hyt.it.ogt.kq.service.admission;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyt.it.ogt.kq.service.gov.feign.ks.model.KwExamVO;
import com.hyt.it.ogt.kq.service.gov.model.dto.admission.AdmissionTicketTemplateVariableDTO;
import com.hyt.it.ogt.kq.service.model.entity.admission.AdmissionTicketTemplateVariable;
import com.hyt.it.ogt.kq.service.gov.model.param.admission.AddOrUpdateAdmissionTicketInfoParam;
import com.hyt.loginfo.model.Organization;
import com.hyt.loginfo.model.User;

import java.util.List;

/**
 * <p>
 * 准考证模板变量表 服务类
 * </p>
 *
 * @author yanghuankun@talkweb.com.cn
 * @since 2023-01-10
 */
public interface IAdmissionTicketTemplateVariableService extends IService<AdmissionTicketTemplateVariable> {

    void update(List<AdmissionTicketTemplateVariableDTO> admissionTicketTemplateVariableDTOS, String admissionId, User user, Organization deptInfo);

    /**
     * 删除模板变量配置
     *
     * @param admissionId
     * @param currentUser
     */
    void deleteByAdmissionId(String admissionId, User currentUser);

    /**
     * 初始化标准模板变量配置
     *
     * @param addOrUpdateAdmissionTicketInfoParam
     * @param admissionTicketInfoId
     * @param currentUser
     * @param deptId
     */
    void initStandardTemplateVariable(AddOrUpdateAdmissionTicketInfoParam addOrUpdateAdmissionTicketInfoParam, String admissionTicketInfoId, User currentUser, String deptId);

    /**
     * 初始化考生头像和考试协议变量配置
     *
     * @param templateId
     * @param admissionTicketInfoId
     * @param currentUser
     * @param deptId
     */
    void initCustomTemplateVariable(String templateId, String admissionTicketInfoId, User currentUser, String deptId);

    /**
     * 获取考生协议
     *
     * @param admissionTicketInfoId
     * @return
     */
    String getExamAgreement(String admissionTicketInfoId);

    /**
     * 同步考生协议
     *
     * @param examId
     * @param loginUser
     * @return
     */
    void syncExamAgreement(String examId, User loginUser);

    /**
     * 更新无考场考生协议
     *
     * @param kwExamVO
     * @param userId
     */
    void updateKwExamAgreement(KwExamVO kwExamVO, String userId);

    /**
     * 更新无考场考试名称
     *
     * @param kwExamVO
     * @param userId
     */
    void updateKwExamName(KwExamVO kwExamVO, String userId);
}
